<div class="admin_left actions">
	<h3 style="font-size:20px;">Manage more</h3>
	<ul>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('Edit Purchase'), array('action' => 'edit', $purchase['Purchase']['id']),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Form->postLink(__('Delete Purchase'), array('action' => 'delete', $purchase['Purchase']['id']),array('class' => 'consistentButton2'), null, __('Are you sure you want to delete # %s?', $purchase['Purchase']['id'])); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Purchases'), array('action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Purchase'), array('action' => 'add'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Items'), array('controller' => 'items', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Item'), array('controller' => 'items', 'action' => 'add'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Suppliers'), array('controller' => 'suppliers', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Supplier'), array('controller' => 'suppliers', 'action' => 'add'),array('class' => 'consistentButton2')); ?> </li>
	</ul>
</div>

<div id="pinkHeader" class="admin_right purchases form">
    <div id=breadcrumbAdmin>
		<?php $this->Html->addCrumb('Purchases', '/Purchases/index'); ?>
    	<?php $this->Html->addCrumb('View', '/Purchases/view', array('style'=> ('text-decoration:underline;  color:#EB1E70;'))); ?>
    	<?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Transactions', 'url' => array('controller' => 'Sales', 'action' => 'index', 'plugin' => null), 'escape' => false)); ?>
	</div>

    <h2><?php  echo __('Purchase'); ?></h2>

    <table cellpadding="0" cellspacing="0" class=" table table-bordered table-hover">

           <!-- <h3 style="font-size:180%;"><?php echo __('Purchase Details'); ?></h3>  -->

        <tr>
            <th><?php echo __('Id'); ?></th>
            <th><?php echo __('Item'); ?></th>
            <th><?php echo __('Supplier'); ?></th>
            <th><?php echo __('Price'); ?></th>
            <th><?php echo __('Date'); ?></th>
            <th><?php echo __('Note'); ?></th>
            &nbsp;
        </tr>

        <tr>
            <td>
                <?php echo h($purchase['Purchase']['id']); ?>
            </td>

            <td>
               <?php echo $this->Html->link($purchase['Item']['name'], array('controller' => 'items', 'action' => 'view', $purchase['Item']['id'])); ?>
                &nbsp;
            </td>

            <td>
                <?php echo $this->Html->link($purchase['Supplier']['id'], array('controller' => 'suppliers', 'action' => 'view', $purchase['Supplier']['id'])); ?>
                &nbsp;
            </td>

            <td>
                <?php echo h($purchase['Purchase']['price']); ?>
                &nbsp;
            </td>

            <td>
                <?php echo h($purchase['Purchase']['date']); ?>
                &nbsp;
            </td>


            <td>
                <?php echo h($purchase['Purchase']['note']); ?>
                &nbsp;
            </td>
        </tr>
    </table>
</div>